home *** CD-ROM | disk | FTP | other *** search
- 86
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- InstallFont
- --- RECORDSEPARATOR ---
- Platform:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Windows
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Description:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baInstallFont installs a TrueType or Bitmap font.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Usage:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Result = baInstallFont( FontFile , FontName )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Arguments:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- FontFile is the .ttf or .fon file to install.
- --- RECORDSEPARATOR ---
- FontName is the name of the font.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Returns:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Integer.
- --- RECORDSEPARATOR ---
- Returns 0 if font installs OK. Otherwise returns one of:
- --- RECORDSEPARATOR ---
- 1
- --- RECORDSEPARATOR ---
- A font file with that name already exists.
- --- RECORDSEPARATOR ---
- 2
- --- RECORDSEPARATOR ---
- The font file was not found.
- --- RECORDSEPARATOR ---
- 3
- --- RECORDSEPARATOR ---
- Error copying font file.
- --- RECORDSEPARATOR ---
- 4
- --- RECORDSEPARATOR ---
- Windows couldn't install the font.
- --- RECORDSEPARATOR ---
- 5
- --- RECORDSEPARATOR ---
- The font file is an invalid name.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Examples:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Director:
- --- RECORDSEPARATOR ---
- set OK = baInstallFont( the moviePath & "arialb.ttf" , "Arial Bold" )
- --- RECORDSEPARATOR ---
- Authorware:
- --- RECORDSEPARATOR ---
- OK := baInstallFont( FileLocation ^ "arialb.ttf" , "Arial Bold" )
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Notes:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- Most fonts are copyrighted material. You should not install a font unless you are
- --- RECORDSEPARATOR ---
- legally allowed to do so.
- --- RECORDSEPARATOR ---
- The name of the font should be taken from the Fonts Control Panel. The name that
- --- RECORDSEPARATOR ---
- Windows identifies the font to applications is taken from information inside the font
- --- RECORDSEPARATOR ---
- file, not the name you give it.
- --- RECORDSEPARATOR ---
- You should use the FontInstalled command to check whether or not a particular
- --- RECORDSEPARATOR ---
- font is already installed before you try to install a new copy.
- --- RECORDSEPARATOR ---
- Director does not rebuild it's font list after it has been started. This means that the
- --- RECORDSEPARATOR ---
- font will not be available to the projector that installed it unless it is restarted. All
- --- RECORDSEPARATOR ---
- versions of Authorware should be able to use the font immediately. There is usually
- --- RECORDSEPARATOR ---
- no need to restart Windows.
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- See also:
- --- RECORDSEPARATOR ---
-
- --- RECORDSEPARATOR ---
- baFontInstalled